package com.exam.bean;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 客观题选项实体 2012-12-27
 * 
 * @author MuLing
 * 
 */
@Entity
@Table(name = "tb_objective_Answer")
public class ObjectiveAnswer implements Serializable {

	private static final long serialVersionUID = 1L;

	@Id
	// 指定为主键
	@GeneratedValue(strategy = GenerationType.AUTO)
	// 采用自动增长类型
	private Integer id;// 主键id

	@Column(name = "oa_bs")
	private Integer bs; // 选项标识

	@Column(name = "oa_content")
	private String content;// 选项内容

	@Column(name = "oa_isRight")
	private boolean isRight;// 是否正确选项

	@Column(name = "oq_id")
	private Integer oq_id;// 所属题目,来自客观题目表

	/**
	 * @param id
	 *            the id to set
	 */
	public void setId(Integer id) {
		this.id = id;
	}

	/**
	 * @return the id
	 */
	public Integer getId() {
		return id;
	}

	/**
	 * @param bs
	 *            the bs to set
	 */
	public void setBs(Integer bs) {
		this.bs = bs;
	}

	/**
	 * @return the bs
	 */
	public Integer getBs() {
		return bs;
	}

	/**
	 * @param content
	 *            the content to set
	 */
	public void setContent(String content) {
		this.content = content;
	}

	/**
	 * @return the content
	 */
	public String getContent() {
		return content;
	}

	/**
	 * @param isRight
	 *            the isRight to set
	 */
	public void setRight(boolean isRight) {
		this.isRight = isRight;
	}

	/**
	 * @return the isRight
	 */
	public boolean isRight() {
		return isRight;
	}

	/**
	 * @param oq_id
	 *            the oq_id to set
	 */
	public void setOq_id(Integer oq_id) {
		this.oq_id = oq_id;
	}

	/**
	 * @return the oq_id
	 */
	public Integer getOq_id() {
		return oq_id;
	}

}
